﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using System.Data;
namespace BLL
{
    public class CardsHandler
    {

        // Handle to the Cards DBAccess class
        CardsDBAccess objCards = null;

        public CardsHandler() {
            objCards = new CardsDBAccess();
        }

        public bool UpdateBalanceReceived(String AccountNumber, Double Balance, String CONNECTION_STRING)
        {
            return objCards.UpdateBalanceReceived(AccountNumber, Balance, CONNECTION_STRING);
        }

        public bool UpdateBalanceTransfer(String AccountNumber, Double Balance, String CONNECTION_STRING)
        {
            return objCards.UpdateBalanceTransfer(AccountNumber, Balance, CONNECTION_STRING);
        }

        public DataTable GetInfoReceived(String AccountNumber, String CONNECTION_STRING)
        {
            return objCards.GetInfoReceived(AccountNumber, CONNECTION_STRING);
        }

        public DataTable GetCardsTableReceived(String AccountNumber, String CONNECTION_STRING)
        {
            return objCards.GetCardsTableReceived(AccountNumber, CONNECTION_STRING);
        }

        public Cards GetCardsDetailsTransfer(String AccountNumber, String CONNECTION_STRING)
        {
            return objCards.GetCardsDetailsTransfer(AccountNumber, CONNECTION_STRING);
        }

        public DataTable GetCardsTable(int UserID, String CONNECTION_STRING)
        {
            return objCards.GetCardsTable(UserID, CONNECTION_STRING);
        }

        public List<Cards> GetCardsList(String CONNECTION_STRING)
        {
            return objCards.GetCardsList(CONNECTION_STRING);
        }

        public Cards GetCardsDetails(int CardsID, String CONNECTION_STRING)
        {
            return objCards.GetCardsDetails(CardsID, CONNECTION_STRING);
        }

        public bool DeleteCards(int CardID, String CONNECTION_STRING)
        {
            return objCards.DeleteCards(CardID, CONNECTION_STRING);
        }

        public bool UpdateCards(Cards obj, String CONNECTION_STRING)
        {
            return objCards.UpdateCards(obj, CONNECTION_STRING);
        }

        public bool AddNewCards(Cards obj, String CONNECTION_STRING)
        {
            return objCards.AddNewCards(obj, CONNECTION_STRING);
        }
    }
}
